package main

import (
	"github.com/labstack/echo/v4"
	"net/http"
)

func main() {

	e := echo.New()

	e.GET("/user/:id", getUser) //http://localhost/user/3333
	e.GET("/show", show)        //http://localhost/show?team=213&member=lisi

	e.Start(":80")
}

func getUser(c echo.Context) error {
	param := c.Param("id")
	return c.String(http.StatusOK, param)
}

func show(c echo.Context) error {
	team := c.QueryParam("team")
	member := c.QueryParam("member")
	return c.String(http.StatusOK, team+"-"+member)
}
